# -*- coding:utf-8 -*- 
#=====================================
#	Creater:15921315347@163.com
#	Create Time:2016-06-22 09:58:27
#	Description: 
#=====================================

from tornado.web import RequestHandler,escape
from datetime import datetime

class BookHandler(RequestHandler):

	def get(self,*args,**kwargs):

		result = [ {'who':item,'name':'book%s'%item,'author':'author%s'%item,'when':datetime.now().strftime('%Y-%m-%d %H:%M:%S'),'description':'something'}
		 for item in range(10)]
		self.set_header('content-type','application/json')
		self.write(escape.json_encode(result))


